<?php $this->load->view('layout/header'); ?>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="page-title">旅游商品管理
                    <small> 产品类型</small>
                </h3>
                <?php echo breadcrumb(array('tourismgoods/grid' => '旅游产品', 'tourismgoodscategory/grid' => '类别管理')); ?>
            </div>
        </div>
        <?php echo execute_alert_message() ?>
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>添加类别</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form add-supplieruid-html">
                        <form class="form-horizontal line-form" action="<?php echo $base_url ?>" method="post"
                              enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>名称</label>

                                <div class="controls">
                                    <input type="text" name="name" class="m-wrap large required supplieruid "
                                           value="<?php if (isset($result)) {
                                               echo $result->name;
                                           } ?>">
                                    <input type="hidden" name="id" class="m-wrap large required supplieruid "
                                           value="<?php if (isset($result)) {
                                               echo $result->id;
                                           } ?>">
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label"><em>* </em>所属</label>

                                <div class="controls">
                                    <?php echo $cate ?>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label"><em>* </em>优先级</label>

                                <div class="controls">
                                    <input type="text" name="priority" class="m-wrap  number supplieruid "
                                           placeholder="请填写优先级0-255" value="<?php if (isset($result)) {
                                        echo $result->priority;
                                    } ?>">
                                </div>
                            </div>
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 保存</button>
                                <a href="<?php echo base_url('tourismgoodscategory/grid') ?>">
                                    <button class="btn" type="button">返回</button>
                                </a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $this->load->view('layout/footer'); ?>